import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Hashtable;
import java.util.TreeMap;
class  MapTest
{
    public static void main(String[] args)
    {
        Map<String, String> map=new HashMap<>();
        map.put("盛茂淞", "20175316");
        Iterator<String> iterator = map.keySet().iterator();
        Object is;
        while (iterator.hasNext()) {
            Object key = iterator.next();
            System.out.println("map.get(key) is :"+map.get(key));
        }
        Map<String, String> hashmap=new HashMap<>();
        hashmap.put("盛茂淞", "盛茂淞");
        Iterator<String> iterator_4 = hashmap.values().iterator();
        while (iterator_4.hasNext()) {
            Object key = iterator_4.next();
            System.out.println("map.get(value) is :"+hashmap.get(key));
        }
        Hashtable<String, String> tab=new Hashtable<>();
        tab.put("盛茂淞", "20175316");
        Iterator<String> iterator_1 = tab.keySet().iterator();
        while (iterator_1.hasNext()) {
            Object key = iterator_1.next();
            System.out.println("tab.get(key) is :"+tab.get(key));
        }
        Hashtable<String, String> hashtable=new Hashtable<>();
        hashtable.put("盛茂淞", "盛茂淞");
        Iterator<String> iterator_5 = tab.keySet().iterator();
        while (iterator_5.hasNext()) {
            Object value = iterator_5.next();
            System.out.println("tab.get(value) is :"+hashtable.get(value));
        }
        TreeMap<String, String> tmp=new TreeMap<>();
        tmp.put("盛茂淞", "20175316");
        Iterator<String> iterator_2 = tmp.keySet().iterator();
        while (iterator_2.hasNext()) {
            Object key = iterator_2.next();
            System.out.println("tmp.get(key) is :"+tmp.get(key));
        }
        TreeMap<String, String> treemap=new TreeMap<>();
        treemap.put("盛茂淞", "盛茂淞");
        Iterator<String> iterator_3 = treemap.values().iterator();
        while (iterator_3.hasNext()) 
{Object key = iterator_2.next();
            System.out.println(tmp.get(key) is :"+tmp.get(key));
        }
    }
}
